// 设置token相关操作
let HMKEY = 'hm-News'


// 保存token
function saveToken(obj){
    localStorage.setItem(HMKEY,JSON.stringify(obj))
}

// 获取Token
function getToken(){    
   return JSON.parse(localStorage.getItem(HMKEY))
}

// 删除Token
function removeToken(){
    localStorage.removeItem(HMKEY)
}

export {saveToken,getToken,removeToken} 